var name = '王晶'
var age = 18
var flag = true

function sum(num1,num2) {
    return num1+num2
}
if (flag){
    console.log(sum(20, 10));
}

// 导出方式1
export {
   flag,sum
}


// 导出方式2
export var num1 = 100;
export var num2 = 20;

// 导出函数/类
export function mul(num1,num2){
    return num1*num2;
}

export  class Person {
    run(){
        console.log("在RUN");
    }
}

// export default   可以让导入者来自己命名(不能导出和导入多个default！！！)
const address = 'km'
// export default address

export default function (argument) {
    console.log(argument);
}


